<template>
    <div>
        <div v-if="flag==false">
            <p>密码：<input type="password" v-model="pwd1"></p>
            <p>确认密码：<input type="password" v-model="pwd2"></p>
            <p><input type="button" value="提交" @click="send_pwd()"></p>    
            
        </div>
        <h1 v-if="flag==true">恭喜你，修改密码成功........</h1>
    </div>    
</template>

<script>
import {reset_user_pwd} from "./axios_api/api.js"
export default {
    name:"reset_pwd",
    data() {
        return {
            pwd1:"",
            pwd2:"",
            flag:false
        }
    },
    method:{
        send_pwd(){
            reset_user_pwd().then(res=>{
                console.log(res)
            })
        }
    }
}
</script>

<style>

</style>
